<template>
	<view>
		推送消息:<input class="uni-input" placeholder="请输入推送内容" focus="true" type="text" v-model="message"/>
		<button type="primary" @tap="localpush">本地推送</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				message:""
			};
		},
		methods:{
			localpush:function(){
				var msg = this.message;
				console.log("message"+msg);
				void plus.push.createMessage(msg,"","");
				uni.showToast({
					title:"本地推送成功"
				})
			}
		}
	}
</script>

<style>

</style>
